﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.eforceglobal.crux.notifications
{
    public class CreateForgotPasswordNotification
    {
        public void SendForgotPasswordNotificationToUser(string fullName, string RandomPassword, string userName)
        {
            List<KeyValuePair<string, string>> TagsAndValues = new List<KeyValuePair<string, string>>();
            TagsAndValues.Add(new KeyValuePair<string, string>("FullName", fullName));
            TagsAndValues.Add(new KeyValuePair<string, string>("UserName", userName));
            TagsAndValues.Add(new KeyValuePair<string, string>("Password", RandomPassword));

            List<string> recepients = new List<string>();
            recepients.Add(userName);
            MailMan.SendMail("ForgotPassword", TagsAndValues, recepients);
        }
    }
}
